import { MockAjax } from "@/mockApi/MockAjax";
// import { customAlphabet } from "nanoid";
// const nanoid = customAlphabet("123456789", 4);

const basedata = [
  //name为 活动名称，data为活动日期，region为活动区域，rule为负责人
  {
    // id: `${nanoid()}`,
    active: "111",
    money: "222",
    number: "33",
    spoce: "44",
    discount: "55",
  },
  {
    active: "11",
    money: "222",
    number: "33",
    spoce: "44",
    discount: "55",
  },
  {
    active: "121",
    money: "222",
    number: "33",
    spoce: "44",
    discount: "55",
  },
];
const apimockactivitys = new MockAjax("添加优惠券mock");
apimockactivitys.initTable(basedata);

export { apimockactivitys };
